home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-27 | 2.3 KB | 61 lines | [TEXT/KAHL] |
- Jim's CDEFs © 1994-1995 by James G. Stout
- --------------------------------------------------------------------
- About cdef3D…
-
- Note: v1.5 of this control is again a major update. I reworked the "anti-
- flicker" logic by using GWorlds and added a 'tingeColor' option.
-
- v1.4 was also a major change to this control. v1.2 fixed some multiple
- monitor problems, v1.3 is a minor cleanup and the source is now with the
- source for the other CDEFs. You can use this as a guide for working with
- and debugging the other controls.
-
- This started life as a pretty "bare bones" CDEF. It is now a "proper"
- 3D replacement for the default CDEF 0 (which supplies the Mac with its
- pushButtons, radioButtons and checkBoxes).
-
- This control is a similar to the the standard "2D' black & white buttons,
- but with some subtle gray shading to give what (IMHO) is a pleasing 3D
- effect. See develop issue 15 for a good article about "Working in the
- third dimension" and 3D controls.
-
- An addition is variation code 4 - in this control it forces the push button
- variation to use the background color from the current port.
- ** NOTE **
- Variation 4 was used for a "Tog Button" in earlier versions of this
- CDEF. There is now a separate control for a "Tog Button".
-
- It will behave properly in color environments, respecting 'cctb' resources and
- using the System 7 style gray for disabled controls.
-
- 3 Think C projects are included:
-
- debugCDEF π
- - builds a 'dummy' code resource (CDEF id=128) for use in debugging.
- - you don't need to build this, the dummy CDEF is in the debug.rsrc file.
-
- test3D π
- - run the CDEF 128 as inline code to test it.
-
- The CDEF code is contained in file cdef3D.c
-
- There are several utility routines here that could be used in any CDEF project.
-
- colorCDEF.c / colorCDEF.h - get 'cctb' colors
- grayCDEF.c / grayCDEF.h - for disabled gray text
- miscCDEF.c / miscCDEF.h - utility routines
- qdCDEF.c / qdCDEF.h - get an offscreen drawing environment
-
- and debugCDEF.c - to help with source level debugging.
-
- The code is fairly straight forward and moderately well commented. Let me know
- if you need more information.
-
- Jim Stout
-
- Internet : JimS@WRQ.COM(work hours, PST)
- AppleLink : WRQ (daily)
- CompuServe : 73240,2052 (weekly or so)
- AOL : JasG (weekly or so)
- eWorld : Jim Stout (weekly or so)
-